#include<stdio.h>
#include<math.h>
//2*x*x*x-4*x*x+3x-6=0
//6*x*x-8*x+3=0
//0=k(x-x1)+y1 x1就是a
int main()
{double a,y1,k;
    printf("输入一个1.5附近的值,请输入起始的X坐标:");
    scanf("%lf",&a);
    while(fabs(y1)<pow(10,-6))
    {
    k=6*a*a-8*a+3;
    y1=2*a*a*a-4*a*a+3*a-6;
    if(fabs(y1)<pow(10,-6))
    break;
    a=-y1/k+a;
    }
    printf("近似解为%lf\n",a);
    return 0;
}